package com.imooc.sell.util;

/**
 * @author heizi
 * @date 2018/11/7 10:40
 */
public class MathUtil {

    private static final Double MONRY_RANGE = 0.01;

    public static Boolean equals(Double d1, Double d2) {
        Double result = Math.abs(d1 - d2);
        if (result < MONRY_RANGE) {
            return true;
        }else {
            return false;
        }
    }
}
